package stack

import "fmt"

const CAPATRITY int = 15;

type myStack struct {
	length int
	top int
	data *myStack;
}

func initQueue(queue myStack) myStack {
	queue.top = 0;
	queue.length = 0;
	return queue
}

func fullQueue(myStack2 myStack) bool {
	return myStack2.length == CAPATRITY;
}

func EmptyQueue(myStack2 myStack) bool {
	return myStack2.length == 0;
}

func push(myStack2 myStack) bool {
	if EmptyQueue(myStack2) {
		return false
	}else {
		myStack2.length -=1
		return true
	}
}

func pop(myStack2 myStack, e int) bool {
	if(fullQueue(myStack2)){
		return false;
	}else {
		myStack2.length =+1;
		myStack2.top = (myStack2.top+1)%CAPATRITY
		myStack2.top = e;
	}
	return true
}

func showQueue(myStack2 myStack){
	if EmptyQueue(myStack2) {
		return;
	}else {
		i:= myStack2.length;
		for i !=myStack2.top {
			i++;
			i = i % CAPATRITY;
		}
	}
	fmt.Println(" ")
}

func main() {

}